<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <!-- 根据路由得元信息判断组件是隐藏还是显示 -->
    <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>

import Header from './components/Header';
import Footer from './components/Footer';
export default {
  name: 'App',
  components: {
    Header,
    Footer
  },
  mounted() {
    this.$store.dispatch("getCategoryList");
  }
}
</script>

<style>

</style>
